package voldp

import (
	"image/draw"
	"image/png"
	"sync"
)

type VolDefaltPNGEncoderBufferPool sync.Pool

func (p *VolDefaltPNGEncoderBufferPool) Get() *png.EncoderBuffer {
	return (*sync.Pool)(p).Get().(*png.EncoderBuffer)
}
func (p *VolDefaltPNGEncoderBufferPool) Put(i *png.EncoderBuffer) {
	(*sync.Pool)(p).Put(i)
}

type DrawRGBA64PalettedImage interface {
	draw.RGBA64Image
	ColorIndexAt(x, y int) uint8
}
